package com.study4.mybatis.springbootstudy4mybatis.controller;

import com.study4.mybatis.springbootstudy4mybatis.model.CarrierCode;
import com.study4.mybatis.springbootstudy4mybatis.service.CarrierCodeService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author xuly
 * @title: CarrierCodeController
 * @projectName spring-boot
 * @description: TODO
 * @date 2019-07-2418:50
 **/
@RestController
public class CarrierCodeController {
    @Resource
    private CarrierCodeService carrierCodeService;

    @RequestMapping("/hello")
    public Object hello(){
        CarrierCode byId = carrierCodeService.getById(1);
        return byId;
    }
}
